import React, { Fragment } from 'react';
import './index.scss'
import {useNavigate} from 'react-router-dom'


function Login() {
  const navigate = useNavigate() 
  
  return (
    <Fragment>
      <div className='login-box'>
        <h1>登录</h1>
        <button onClick={()=>{navigate('/weather')}}>Login</button>
      </div>
    </Fragment>
  );
}

export default Login;